package com.iss.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DirectionController {
    @RequestMapping("gotoSadminIndex")
    public String gotoSadminIndex(){return "/sadmin/sadminIndex";}

    @RequestMapping("gotoGadminIndex")
    public String gotoGadminIndex(){return "/gadmin/gadminIndex";}

    @RequestMapping("gotoSadminUser")
    public String gotoSadminUser(){return "/sadmin/sadminUser";}

    @RequestMapping("gotoSadminBook")
    public String gotoSadminBook(){return "/sadmin/sadminBook";}

    @RequestMapping("gotoSadminOrder")
    public String gotoSadminOrder(){return "/sadmin/sadminOrder";}

    @RequestMapping("gotoLogin")
    public String gotoLogin(){
        return "../index";
    }

    @RequestMapping("gotoRegister")
    public String gotoRegister(){
        return "register";
    }

    @RequestMapping("gotoInventory")
    public String gotoInventory(){
        return "/gadmin/gadminInventory";
    }

    @RequestMapping("gotoyhIndex")
    public String gotoyhIndex(){return "/yh/yhIndex";}

    @RequestMapping("gotoyhFrist")
    public String gotoyhFrist(){return "/yh/yhFrist";}

    @RequestMapping("gotoyhBuy")
    public String gotoyhBuy(){return "/yh/yhBuy";}

    @RequestMapping("gotoyhShop")
    public String gotoyhShop(){return "/yh/yhShop";}

    @RequestMapping("gotogadminCar")
    public String gotogadminCar(){return "/gadmin/gadminCar";}

    @RequestMapping("gotogadminRepertory")
    public String gotogadminRepertory(){return "/gadmin/gadminRepertory";}

    @RequestMapping("gotogadminInventory")
    public String gotogadminInventory(){return "/gadmin/gadminInventory";}

    @RequestMapping("gotoyhContrast")
    public String gotoyhContrast(){return "/yh/yhContrast";}

    @RequestMapping("gotoyhCalculator")
    public String gotoyhCalculator(){return "/yh/yhCalculator";}

    @RequestMapping("gotoyhBuyByCar")
    public String gotoyhBuyByCar(){return "/yh/yhBuyByCar";}

    @RequestMapping("gotoyhBook")
    public String gotoyhBook(){return "/yh/yhBook";}

    @RequestMapping("gotoyhtiaozhuan")
    public String gotoyhtiaozhuan(){return "/yh/tiaozhuan";}

    @RequestMapping("gotoyhJieSuan")
    public String gotoyhjiesuan(){return "/yh/yhJieSuan";}

    @RequestMapping("gotoyhInform")
    public String gotoyhInform(){return "/yh/yhInform";}

    @RequestMapping("gotoyhFinal")
    public String gotoyhfinal(){return "/yh/yhFinal";}

    @RequestMapping("/")
    public String gotoyh(){return "/yh/yhIndex";}
}
